package com.zb.Service.impl;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.zb.Service.SealorderService;
import com.zb.entity.Sealorder;
import com.zb.mapper.SealorderMapper;
@Component("SealorderService")
public class SealorderServiceImpl implements SealorderService{
	@Autowired
	private SealorderMapper sm;
	public int getMaxId() {
		
		return sm.getMaxId();
	}

	public void saveSeal(int userid, int dicid, String ordertime,
			String content,int roleid,int deptid) {
		Map<String, Object> params = new HashMap<String, Object>();
		params.put("userid", userid);
		params.put("dicid", dicid);
		params.put("ordertime", ordertime);
		params.put("content", content);
		params.put("roleid", roleid);
		params.put("deptid", deptid);
		sm.saveSeal(params);
	}

	public Sealorder getSealorderById(int id) {
		
		return sm.getSealorderById(id);
	}
	
}